#ifndef MYTHREAD_H
#define MYTHREAD_H

#include <QDialog>

#include <QFileDialog>
#include <QMessageBox>

#include <QByteArray>

#include <QThread>

#include <QTcpSocket>

#include <QFile>
#include <QFileInfo>

#include <QJsonObject>  // JSON对象类
#include <QJsonDocument>  // JSON文档类



class MyThread : public QThread
{
    Q_OBJECT
public:
    explicit MyThread(const QString ip ,const quint16 portstring,QString radPath ,QObject *parent = 0);
    ~MyThread();



protected:
    void run();


private:
    QString ip;
    quint16 port;
    QTcpSocket *tcpSocket;

    QString readPath;


signals:
    void progressUpdated(int percent); // 进度更新信号
    void transferFinished(bool success); // 传输完成信号


};

#endif // MYTHREAD_H
